/**
 * 
 */
$(function() {
	var ietmHtml="";	//滑动页html
	var data11="";	//返回数据
	var length="";	//数据长度
	$.ajax({
		async:false,
		type:'post',
		url:'tree/getPmFirstLevel?id=homeFirstLevel',
		success:function(data){
			data11=data.items;
			length=data11.length;
			for(var i=0;i<Math.ceil(length/6);i++){
				ietmHtml+='<div class="swiper-slide">';
				for(var p=i*6;p<(i+1)*6&&p<length;p++){
					ietmHtml+='<div class="col-rb-bg" onclick="location=\'/ietm/index?pmId='+data11[p].id+'\'"><img src="images/icon-06.png"/><p>'+data11[p].title+'</p></div>';
				}
				ietmHtml+='</div>';
			}
			$("#ietmA").html(ietmHtml);
			
		}
	}); 
});


